package eg.backend.util;

public class TimeDimension {
	private int year = -1;
	private int month = -1;
	private int week = -1;

	public TimeDimension() {
	}

	public TimeDimension(int month, int week, int year) {
		super();
		this.month = month;
		this.week = week;
		this.year = year;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public int getWeek() {
		return week;
	}

	public void setWeek(int week) {
		this.week = week;
	}

//	public TimeDimensionLevel getTimeDimensionLevel() {
//		TimeDimensionLevel ret = TimeDimensionLevel.ERROR;
//
//		if (year == null && month == null && week == null) {
//			ret = TimeDimensionLevel.YEAR;
//		} else if (year != null && month == null && week == null) {
//			ret = TimeDimensionLevel.MONTH;
//		} else if (year != null && month != null && week == null) {
//			ret = TimeDimensionLevel.WEEK;
//		} else if (year != null && month != null && week != null) {
//			ret = TimeDimensionLevel.DAY;
//		}
//
//		return ret;
//	}
//
//	public static enum TimeDimensionLevel {
//		YEAR, MONTH, WEEK, DAY, ERROR
//	}
}
